package com.wejoy.video.middle.station.data.service.overtime;

import com.wejoy.video.middle.station.data.domain.overtime.OvertimeInfo;
import com.wejoy.video.middle.station.data.domain.system.SysDept;
import com.wejoy.video.middle.station.data.domain.system.SysUser;

import java.util.List;

/**
 * 加班详情
 *
 * @author miracle_j
 * @date 2024年04月22日 11:11:52
 */
public interface IOvertimeInfoService {
    /**
     * 保存或更新
     * @param req
     */
    void save(OvertimeInfo req, SysUser user);


    void closeAbility(OvertimeInfo req);

    void openAbility(OvertimeInfo req);

    /**
     * 插入
     *
     * @param overtimeInfo overtimeInfo
     * @return int
     */
    int insertSelective(OvertimeInfo overtimeInfo);

    /**
     * 主键更新
     *
     * @param overtimeInfo overtimeInfo
     * @return int
     */
    int updateSelectiveById(OvertimeInfo overtimeInfo);

    /**
     * 数量
     *
     * @param overtimeInfo overtimeInfo
     * @return int
     */
    int getCount(OvertimeInfo overtimeInfo);

    /**
     * 主键查询
     *
     * @param id id
     * @return OvertimeInfo
     */
    OvertimeInfo getOneById(Long id);

    OvertimeInfo getOneByDeptId(Long id);

    /**
     * 多条
     *
     * @param overtimeInfo overtimeInfo
     * @return List<OvertimeInfo>
     */
    List<OvertimeInfo> getList(OvertimeInfo overtimeInfo);

    /**
     * 分页
     *
     * @param overtimeInfo overtimeInfo
     * @return List<OvertimeInfo>
     */
    List<OvertimeInfo> getPageList(OvertimeInfo overtimeInfo);

    /**
     * 审核
     * @param id
     * @param operator
     */
    void audit(Long id, String operator);

    /**
     * 取消审核
     * @param id
     * @param operator
     */
    void unaudit(Long id, String operator);

    /**
     * 删除
     * @param id
     * @param operator
     */
    void delete(Long id, String operator);
}
